<?php

/**
 * @file
 * Sample token endpoint.
 *
 * Obviously not production-ready code, just simple and to the point.
 *
 * In reality, you'd probably use a nifty framework to handle most of the crud for you.
 */

require "lib/PDOOAuth2.inc";

$oauthServer = new PDOOAuth2();
$token = new \OAuth2\Example\Server\Token\Handler($oauthServer);
$token->handleTokneRequest();
